const path = require("path")
const { CleanWebpackPlugin } = require("clean-webpack-plugin"); // 清空目录
module.exports = {
  entry: {
    funTreeShaking: "./src/fun/index.js",
    objTreeShaking: "./src/obj/index.js",
  },
  output: {
    path: path.resolve(__dirname, "./build"),
    filename: "[name]-[hash:6].js",
  },
  mode: "production",
  module: {
    rules: [
    ]
  },
  plugins: [
    new CleanWebpackPlugin(), // 清空目录
  ]
}